﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007B7 RID: 1975
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetQuestDataScRsp : IMessage<GetQuestDataScRsp>, IMessage, IEquatable<GetQuestDataScRsp>, IDeepCloneable<GetQuestDataScRsp>, IBufferMessage
	{
		// Token: 0x17001930 RID: 6448
		// (get) Token: 0x060058B7 RID: 22711 RVA: 0x000EF2FD File Offset: 0x000ED4FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetQuestDataScRsp> Parser
		{
			get
			{
				return GetQuestDataScRsp._parser;
			}
		}

		// Token: 0x17001931 RID: 6449
		// (get) Token: 0x060058B8 RID: 22712 RVA: 0x000EF304 File Offset: 0x000ED504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetQuestDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001932 RID: 6450
		// (get) Token: 0x060058B9 RID: 22713 RVA: 0x000EF316 File Offset: 0x000ED516
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetQuestDataScRsp.Descriptor;
			}
		}

		// Token: 0x060058BA RID: 22714 RVA: 0x000EF31D File Offset: 0x000ED51D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetQuestDataScRsp()
		{
		}

		// Token: 0x060058BB RID: 22715 RVA: 0x000EF330 File Offset: 0x000ED530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetQuestDataScRsp(GetQuestDataScRsp other) : this()
		{
			this.questList_ = other.questList_.Clone();
			this.totalAchievementExp_ = other.totalAchievementExp_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060058BC RID: 22716 RVA: 0x000EF37D File Offset: 0x000ED57D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetQuestDataScRsp Clone()
		{
			return new GetQuestDataScRsp(this);
		}

		// Token: 0x17001933 RID: 6451
		// (get) Token: 0x060058BD RID: 22717 RVA: 0x000EF385 File Offset: 0x000ED585
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Quest> QuestList
		{
			get
			{
				return this.questList_;
			}
		}

		// Token: 0x17001934 RID: 6452
		// (get) Token: 0x060058BE RID: 22718 RVA: 0x000EF38D File Offset: 0x000ED58D
		// (set) Token: 0x060058BF RID: 22719 RVA: 0x000EF395 File Offset: 0x000ED595
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TotalAchievementExp
		{
			get
			{
				return this.totalAchievementExp_;
			}
			set
			{
				this.totalAchievementExp_ = value;
			}
		}

		// Token: 0x17001935 RID: 6453
		// (get) Token: 0x060058C0 RID: 22720 RVA: 0x000EF39E File Offset: 0x000ED59E
		// (set) Token: 0x060058C1 RID: 22721 RVA: 0x000EF3A6 File Offset: 0x000ED5A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060058C2 RID: 22722 RVA: 0x000EF3AF File Offset: 0x000ED5AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetQuestDataScRsp);
		}

		// Token: 0x060058C3 RID: 22723 RVA: 0x000EF3C0 File Offset: 0x000ED5C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetQuestDataScRsp other)
		{
			return other != null && (other == this || (this.questList_.Equals(other.questList_) && this.TotalAchievementExp == other.TotalAchievementExp && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060058C4 RID: 22724 RVA: 0x000EF420 File Offset: 0x000ED620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.questList_.GetHashCode();
			if (this.TotalAchievementExp != 0U)
			{
				num ^= this.TotalAchievementExp.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060058C5 RID: 22725 RVA: 0x000EF486 File Offset: 0x000ED686
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060058C6 RID: 22726 RVA: 0x000EF48E File Offset: 0x000ED68E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060058C7 RID: 22727 RVA: 0x000EF498 File Offset: 0x000ED698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			this.questList_.WriteTo(ref output, GetQuestDataScRsp._repeated_questList_codec);
			if (this.TotalAchievementExp != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.TotalAchievementExp);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060058C8 RID: 22728 RVA: 0x000EF504 File Offset: 0x000ED704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.questList_.CalculateSize(GetQuestDataScRsp._repeated_questList_codec);
			if (this.TotalAchievementExp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TotalAchievementExp);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060058C9 RID: 22729 RVA: 0x000EF570 File Offset: 0x000ED770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetQuestDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.questList_.Add(other.questList_);
			if (other.TotalAchievementExp != 0U)
			{
				this.TotalAchievementExp = other.TotalAchievementExp;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060058CA RID: 22730 RVA: 0x000EF5D1 File Offset: 0x000ED7D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060058CB RID: 22731 RVA: 0x000EF5DC File Offset: 0x000ED7DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 34U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.TotalAchievementExp = input.ReadUInt32();
						}
					}
					else
					{
						this.questList_.AddEntriesFrom(ref input, GetQuestDataScRsp._repeated_questList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002293 RID: 8851
		private static readonly MessageParser<GetQuestDataScRsp> _parser = new MessageParser<GetQuestDataScRsp>(() => new GetQuestDataScRsp());

		// Token: 0x04002294 RID: 8852
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002295 RID: 8853
		public const int QuestListFieldNumber = 4;

		// Token: 0x04002296 RID: 8854
		private static readonly FieldCodec<Quest> _repeated_questList_codec = FieldCodec.ForMessage<Quest>(34U, Quest.Parser);

		// Token: 0x04002297 RID: 8855
		private readonly RepeatedField<Quest> questList_ = new RepeatedField<Quest>();

		// Token: 0x04002298 RID: 8856
		public const int TotalAchievementExpFieldNumber = 13;

		// Token: 0x04002299 RID: 8857
		private uint totalAchievementExp_;

		// Token: 0x0400229A RID: 8858
		public const int RetcodeFieldNumber = 2;

		// Token: 0x0400229B RID: 8859
		private uint retcode_;
	}
}
